﻿using Luna.Data.CRM;

namespace Luna.Model.CRM
{
    internal class Category : LunaReferenceEntity<ICategoryData>, ICategory
    {
        protected Category()
            : base()
        {
        }

        public Category(ICategoryData data)
            : base(data)
        {
        }

        protected Category(Category clone)
            : base(clone)
        {
        }

        public IEditableCategory EditableCopy
        {
            get { return new EditableCategory(this); }
        }

        public string Name
        {
            get { return Data.Name; }
        }

        public string Description
        {
            get { return Data.Description; }
        }

        public string Color
        {
            get { return Data.Color; }
        }
    }
}